package projectx.db;

import java.sql.SQLException;

import projectx.core.base.ProjectXMessage;
import projectx.core.base.ProjectXSystemException;

public class ProjectXSQLException extends ProjectXSystemException {

	// --------------------------------------------------------------------------
	// S T A T I C M E M B E R S
	//
	// --------------------------------------------------------------------------
	private static final ProjectXMessage _msg = new ProjectXMessage("E0040");

	// --------------------------------------------------------------------------
	// C O N S T R U C T O R S
	//
	// --------------------------------------------------------------------------

	public ProjectXSQLException(SQLException e) {

		super(_msg, new ProjectXMessage("E0041", new Integer(e.getErrorCode()),
				e.getSQLState(), e.getMessage()), e);
	}

	public ProjectXSQLException(ProjectXMessage msg, Throwable t) {

		super(msg, t);
	}
}
